// combo_pages_helper.cpp
#include "combo_pages_helper.h"
#include <QComboBox>

void init_pages_combo(QComboBox *combo)
{
    if (!combo) return;

    combo->clear();

    for (int i = 0; i < PAGE_COUNT; ++i) {
        combo->addItem(g_pageTable[i].title, i);   // userData = pageId
    }
}
